import gevent
from gevent import monkey
# monkey.patch_all()
import time




def heng():
    print('哼')
    gevent.sleep(2)
    print('哼')


def ha():
    print('ha')
    gevent.sleep(3)
    print('ha')


start_time = time.time()
g1 = gevent.spawn(heng)
g2 = gevent.spawn(ha)
g1.join()
g2.join()
print(time.time() - start_time)
